package com.dynamixsoftware.printershare.smb;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.MalformedURLException;
import java.net.UnknownHostException;

public class SmbNamedPipe
  extends SmbFile
{
  static final int PIPE_TYPE_CALL = 256;
  public static final int PIPE_TYPE_DCE_TRANSACT = 1536;
  public static final int PIPE_TYPE_RDWR = 3;
  static final int PIPE_TYPE_TRANSACT = 512;
  InputStream pipeIn;
  private OutputStream pipeOut;
  int pipeType;
  
  public SmbNamedPipe(String paramString, int paramInt, NtlmPasswordAuthentication paramNtlmPasswordAuthentication)
    throws MalformedURLException, UnknownHostException
  {
    super(paramString, paramNtlmPasswordAuthentication);
    this.pipeType = paramInt;
    this.type = 16;
  }
  
  public InputStream getNamedPipeInputStream()
    throws IOException
  {
    if (this.pipeIn == null) {
      if (((0x100 & this.pipeType) != 256) && ((0x200 & this.pipeType) != 512)) {
        break label52;
      }
    }
    label52:
    for (this.pipeIn = new TransactNamedPipeInputStream(this);; this.pipeIn = new SmbFileInputStream(this, 0x20 | 0xFFFF00FF & this.pipeType)) {
      return this.pipeIn;
    }
  }
  
  public OutputStream getNamedPipeOutputStream()
    throws IOException
  {
    if (this.pipeOut == null) {
      if (((0x100 & this.pipeType) != 256) && ((0x200 & this.pipeType) != 512)) {
        break label52;
      }
    }
    label52:
    for (this.pipeOut = new TransactNamedPipeOutputStream(this);; this.pipeOut = new SmbFileOutputStream(this, false, 0x20 | 0xFFFF00FF & this.pipeType)) {
      return this.pipeOut;
    }
  }
}


/* Location:           C:\Users\Admin\Desktop\Decompiler\JAD\jd-gui-0.3.6.windows\classes_dex2jar.jar
 * Qualified Name:     com.dynamixsoftware.printershare.smb.SmbNamedPipe
 * JD-Core Version:    0.7.0.1
 */